package
{
	public class GCConstants
	{
		/*
		For the popup menus
		*/
		public static const LABEL_HEIGHT:int = 70;
		public static const LABEL_WIDTH:int = 100;
		public static const X_OFFSET:int = 20;
		public static const Y_OFFSET:int = 20;
		
		/* 
		Icon Constants
		 */
		public static const ICON_HEIGHT:int = 32;
		 
		/*
		For selling and buying
		*/
		public static const COMPUTER_SELLER:uint = 0;
		public static const COMPUTER_NAME:String = "NPC";
		
		public static const COMPUTER_NAMES:Vector.<String> = Vector.<String>(["Black Beard", "George", "Trader Jim", "Viper", "Candyman",
		"Jimmy", "Captain Hook", "Genghis Khan", "Arrowhead", "Cookie Monster", "Green Tea", "Toto", "Macho Man", "Super Woman", "Seattle Kid",
		"Fried Chicken", "Onions", "Princess", "Liquidation"]);

		/*
		 * Credits
		 */
		public static const DEVELOPERS:String = "Developers: Jason Won, Owen Kim, Roy Szeto, Sterling Swigart\n";
		public static const ARTIST:String = "Artist: Brian Britigan\n";
		public static const MISC_ACKNOWLEDGEMENTS:String = "Additional Art: Lamoot (OpenGameArt.org) released under CC-BY 3.0 License\n" +
															"Music: \'Aspiring\' by Kevin MacLeod (incompetech.com)\n" +
															"Sound Effects: soundbible.com";
		 
		/*
		 Color
		 */
		 public static const SALES_TEXT_COLOR:uint 	= 0xffffff;
		 public static const COLOR_GOLD:uint = 0xFFCC00;
		 public static const COLOR_TAN:uint = 0xCC9933;
		 public static const COLOR_BROWN:uint = 0x663300;
		 public static const COLOR_GRAY:uint = 0x999999;
		 public static const COLOR_RED:uint = 0x990000; 
		 public static const COLOR_BLACK:uint = 0x000000;
		 public static const COLOR_WHITE:uint = 0xffffff;
		 public static const COLOR_BLUE:uint = 0x0000FF;
		 
		/*
		 * Time interval at which we should be placing resources.
		 * (time is in milliseconds)
		 */
		public static const RESOURCE_GATHER_INTERVAL:uint = 180000;
		
		/*
		* Time interval at which we should be checking sales.
		* (time is in milliseconds)
		*/
		public static const SALES_CHECK_INTERVAL:uint = 20000;
		
		/*
		 * Whether or not to require loading data from the db (Default false)
		 */
		public static const DEBUG_MODE:Boolean = false;
		
		/*
		 * Whether or not the game should be logging data, please set to false when
		 * debugging the code. (Default true)
		 */
		public static const LOGGING_DATA:Boolean = false;
		
		/*
		 * Whether or not the game will use Facebook properties (DEFAULT false)
		 */
		public static const FACEBOOK_INTEGRATED:Boolean = false;
		
		/*
		 * FB keys
		 */
		public static const FACEBOOK_APP_ID:String = "202212789823625";
		public static const FACEBOOK_API_KEY:String = "891dc6d4d14b1eda75ca7ea76608d8f8"
		public static const FACEBOOK_SECRET_KEY:String = "181d8b12a925381a11406ba99d04f0f8"
		public static const FACEBOOK_ID_PREFIX:String = "FB";
		 
		/**
		 * List Id Constants
		 */
		public static const LIST_SHIP:uint = 						0;
		public static const LIST_WAREHOUSE_PICAROON:uint = 			1;
		public static const LIST_WAREHOUSE_TAFFEREL:uint = 			2;
		public static const LIST_WAREHOUSE_XEBEK:uint = 			3;
		public static const LIST_WAREHOUSE_ALLEGIO:uint = 			4;
		public static const LIST_WAREHOUSE_ONDA:uint = 				5;
		public static const LIST_WAREHOUSE_MARINO:uint = 			6;
		public static const LIST_WAREHOUSE_SHANBAN:uint = 			7;
		public static const LIST_WAREHOUSE_CHUAN:uint = 			8;
		public static const LIST_WAREHOUSE_HAI_JING:uint = 			9;
		public static const LIST_WAREHOUSE_CHUMBUCKET:uint = 		10;
		public static const LIST_WAREHOUSE_DUNDERFUNK:uint = 		11;
		public static const LIST_WAREHOUSE_HORNSWAGGLE:uint = 		12;
		public static const LIST_MARKET_PICAROON:uint = 			13;
		public static const LIST_MARKET_TAFFEREL:uint = 			14;
		public static const LIST_MARKET_XEBEK:uint = 				15;
		public static const LIST_MARKET_ALLEGIO:uint = 				16;
		public static const LIST_MARKET_ONDA:uint = 				17;
		public static const LIST_MARKET_MARINO:uint = 				18;
		public static const LIST_MARKET_SHANBAN:uint = 				19;
		public static const LIST_MARKET_CHUAN:uint = 				20;
		public static const LIST_MARKET_HAI_JING:uint = 			21;
		public static const LIST_MARKET_CHUMBUCKET:uint = 			22;
		public static const LIST_MARKET_DUNDERFUNK:uint = 			23;
		public static const LIST_MARKET_HORNSWAGGLE:uint = 			24;
		
		/*
		 * NETWORK ACTIONS
		 */
		public static const ADD_PLAYER:int 							= 1;
		public static const GET_PLAYER_INFO:int 					= 2;
		public static const UPDATE_PLAYER_XP:int				 	= 3;
		public static const PLAYER_LOGIN:int 						= 4;
		public static const GET_QUESTS:int 							= 5;
		public static const UPDATE_CREW_TASKS:int		 			= 6;
		public static const COMPLETE_QUEST:int 						= 7;
		public static const ADD_SHIP:int 							= 8;
		public static const CHANGE_ACTIVE_SHIP:int 					= 9;
		public static const EQUIP_ITEM_TO_SHIP:int	 				= 10;
		public static const MOVE_ITEM:int				 			= 11;
		public static const ADD_CREW:int 							= 12;
		public static const GET_CREW_INFO:int 						= 13;
		public static const GET_INVENTORY:int 						= 14;
		public static const ADD_TO_INVENTORY:int					= 15;
		public static const REMOVE_FROM_INVENTORY:int 				= 16;
		public static const GET_SALES_LISTING:int				 	= 17;
		public static const UPDATE_SALES_LISTING:int				= 18;
		public static const BUY_ITEM:int							= 19;
		public static const BUILD_STRUCTURE:int						= 20;
		public static const ASSIGN_NEW_QUEST:int					= 22;
		public static const GET_SHIPS:int							= 24;
		public static const GET_SHIP_EQUIPMENT:int					= 25;
		public static const GET_BUILDINGS:int						= 26;
		public static const GET_PLAYER_ITEMS_FOR_SALE:int			= 27;
		public static const GET_PLAYER_ITEMS_FOR_SALE_AT:int		= 28;
		public static const GET_CREW_AT:int							= 29;
		public static const CHANGE_PLAYER_LOCATION:int				= 30;
		public static const UPDATE_QUEST_MIN_LEFT:int				= 31;
		public static const UPDATE_GOLD:int							= 32;
		public static const DELETE_SHIP:int							= 33;
		public static const DELETE_BUILDING:int						= 34;
		public static const UPDATE_CREW:int							= 35;
		public static const UPDATE_TUTORIAL_PROGRESS:int 			= 36;
		public static const UPDATE_QUEST_CONTRIBUTION:int 			= 37;
		public static const UPDATE_QTY:int 							= 38;
		public static const SALES_NOTIFY_COMPLETED:int				= 39;
		
		public static const ACK:int									= 0;
		public static const NACK:int								= 21;
		
		public static const SERVER_URL:String = 
			"http://128.95.1.13:8080/gamescapstone/simeconomy";
		public static const TEST_SERVER_URL:String =
			"http://127.0.0.1/test/foo:8080";
		// Time suffix to avoid request caching.
		public static const URL_TIME_SUFFIX:String = "?time=";
		// Data suffix must be second parameter. First must be time.
		public static const URL_DATA_SUFFIX:String = "&data=";
	}
}
